home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 95 / MOBICLIC 95.ISO / mac / MWB_DATA / TCH095 / TCH095_02 / tch095_02.swf / scripts / frame_101 / DoAction.as
Text File  |  2007-06-28  |  927b  |  35 lines

  1. _root.gAllowFlags = 1;
  2. _root.ST.masquerText();
  3. _root.gListNomVilles = ["Berlin","Hamburg","Bonn","Hannover","Munchen","Stuttgart","Dresden","Frankfurt","Koln","Leipzig"];
  4. listAllVilles = [1,2,3,4,5,6,7,8,9,10];
  5. _root.gListVilles = [];
  6. i = 0;
  7. while(i <= 9)
  8. {
  9.    lElement = _root.randRange(0,listAllVilles.length - 1);
  10.    _root.gListVilles.push(listAllVilles[lElement]);
  11.    listAllVilles.splice(lElement,1);
  12.    i++;
  13. }
  14. listAllMeteo = [1,2,3,4,5,6];
  15. _root.gListMeteo = [];
  16. i = 0;
  17. while(i <= 5)
  18. {
  19.    lElement = _root.randRange(0,listAllMeteo.length - 1);
  20.    _root.gListMeteo.push(listAllMeteo[lElement]);
  21.    listAllMeteo.splice(lElement,1);
  22.    i++;
  23. }
  24. listAllMeteo = [1,2,3,4,5,6];
  25. i = 0;
  26. while(i <= 3)
  27. {
  28.    lElement = _root.randRange(0,listAllMeteo.length - 1);
  29.    _root.gListMeteo.push(listAllMeteo[lElement]);
  30.    listAllMeteo.splice(lElement,1);
  31.    i++;
  32. }
  33. _root.gVille = 0;
  34. _root.gAllowDrag = 0;
  35.